<?php

namespace app\admin\model\sales;

use think\Model;

/**
 * Paymentterms
 */
class Paymentterms extends Model
{
    // 表主键
    protected $pk = 'termsindicator';
    
    // 表名
    protected $name = 'sales_paymentterms';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function getDaysbeforedueAttr($value): float
    {
        return (float)$value;
    }
}